import { defineConfig } from 'vitepress';

export default defineConfig({
  title: 'Adnaan UI',
  description: 'A modern React UI component library',
  
  locales: {
    root: {
      label: 'English',
      lang: 'en',
      title: 'Adnaan UI',
      description: 'A modern React UI component library with beautiful animations and theme support',
      
      themeConfig: {
        nav: [
          { text: 'Guide', link: '/guide/getting-started' },
          { text: 'Components', link: '/components/button' },
          { text: 'GitHub', link: 'https://gitee.com/adnaan/adnaan-ui' },
        ],

        sidebar: {
          '/guide/': [
            {
              text: 'Introduction',
              items: [
                { text: 'Getting Started', link: '/guide/getting-started' },
                { text: 'Installation', link: '/guide/installation' },
                { text: 'Theme Customization', link: '/guide/theme' },
              ],
            },
          ],
          '/components/': [
            {
              text: 'Basic Components',
              items: [
                { text: 'Button', link: '/components/button' },
                { text: 'Input', link: '/components/input' },
                { text: 'Textarea', link: '/components/textarea' },
                { text: 'Badge', link: '/components/badge' },
                { text: 'Tabs', link: '/components/tabs' },
                { text: 'Pagination', link: '/components/pagination' },
                { text: 'InfiniteScroll', link: '/components/infinite-scroll' },
              ],
            },
            {
              text: 'Feedback Components',
              items: [
                { text: 'Toast', link: '/components/toast' },
                { text: 'Alert', link: '/components/alert' },
                { text: 'Modal', link: '/components/modal' },
                { text: 'Confirm', link: '/components/confirm' },
                { text: 'Tooltip', link: '/components/tooltip' },
              ],
            },
          ],
        },
      },
    },
    
    zh: {
      label: '简体中文',
      lang: 'zh-CN',
      title: 'Adnaan UI',
      description: '一个现代化的 React UI 组件库，支持漂亮的动画和主题切换',
      
      themeConfig: {
        nav: [
          { text: '指南', link: '/zh/guide/getting-started' },
          { text: '组件', link: '/zh/components/button' },
          { text: 'GitHub', link: 'https://gitee.com/adnaan/adnaan-ui' },
        ],

        sidebar: {
          '/zh/guide/': [
            {
              text: '介绍',
              items: [
                { text: '快速开始', link: '/zh/guide/getting-started' },
                { text: '安装', link: '/zh/guide/installation' },
                { text: '主题定制', link: '/zh/guide/theme' },
              ],
            },
          ],
          '/zh/components/': [
            {
              text: '基础组件',
              items: [
                { text: 'Button 按钮', link: '/zh/components/button' },
                { text: 'Input 输入框', link: '/zh/components/input' },
                { text: 'Textarea 文本域', link: '/zh/components/textarea' },
                { text: 'Badge 徽章', link: '/zh/components/badge' },
                { text: 'Tabs 标签页', link: '/zh/components/tabs' },
                { text: 'Pagination 分页', link: '/zh/components/pagination' },
                { text: 'InfiniteScroll 无限滚动', link: '/zh/components/infinite-scroll' },
              ],
            },
            {
              text: '反馈组件',
              items: [
                { text: 'Toast 轻提示', link: '/zh/components/toast' },
                { text: 'Alert 警告提示', link: '/zh/components/alert' },
                { text: 'Modal 对话框', link: '/zh/components/modal' },
                { text: 'Confirm 确认框', link: '/zh/components/confirm' },
                { text: 'Tooltip 工具提示', link: '/zh/components/tooltip' },
              ],
            },
          ],
        },
        
        outline: {
          label: '本页目录',
        },
        
        docFooter: {
          prev: '上一页',
          next: '下一页',
        },
        
        darkModeSwitchLabel: '外观',
        sidebarMenuLabel: '菜单',
        returnToTopLabel: '返回顶部',
      },
    },
  },
  
  themeConfig: {
    logo: '/logo.svg',
    
    socialLinks: [
      { icon: 'github', link: 'https://gitee.com/adnaan/adnaan-ui' },
    ],

    footer: {
      message: 'Released under the MIT License.',
      copyright: 'Copyright © 2025 Adnaan',
    },
  },
});

